package com.bridgeintelligent.tag.bulkload.service.es.query;

import org.elasticsearch.search.SearchHit;

import java.io.IOException;

/**
 * @author JackCheung
 * @date 2020/5/8 1:29 PM.
 * description:
 */
public interface IQueryCallback {

    /**
     * 滚动查询回调
     *
     * @param hits 查询返回结果
     */
    void resultListener(SearchHit[] hits) throws IOException;
}
